<% if @currentcategory.category != nil %>
<h1><%= link_to @currentcategory.name, :action => 'index', :id => @currentcategory.category.code %></h1>
<% else %>
<h1><%= @currentcategory.name %></h1>
<% end %>

<div class="categoryDescription"><%= @currentcategory.description %></div>

<%= render(:partial => "category", :collection => @subcategories) %>
<div class="images"><%= render(:partial => "image", :collection => @images) %></div>
